package follow.juc.heima.day8;

import java.util.concurrent.atomic.AtomicIntegerArray;

public class Demo7AtomicIntegerArray {
    public static void main(String[] args) {
        int[] arr = {1, 2, 3, 4, 5};
        AtomicIntegerArray aia = new AtomicIntegerArray(arr);


        System.out.println(aia.compareAndSet(1, 2, 200));

        System.out.println(aia.toString());

    }
}
